from django.views.decorators.csrf import csrf_exempt
from common.port import jsonpost
import commands

@csrf_exempt
def cmd(request):
    if request.method=='POST':
        return jsonpost(request, commands.get_globals())